<script type="text/html" template lay-done="layui.data.done(d);">
<div class="layui-form coreshop-form layui-form-pane" lay-filter="LAY-app-CoreCmsCustomerGroup-createForm" id="LAY-app-CoreCmsCustomerGroup-createForm">
	
	<div class="layui-form-item" style="display:none">
        <label for="id" class="layui-form-label  layui-form-required">id</label>
        <div class="layui-input-block">
            <input  type="number" min="0" max="999999" name="id"   lay-verType="tips" lay-verify="required|number" class="layui-input" value="1" placeholder="请输入id" lay-reqText="请输入id并为数字"  />
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="groupName" class="layui-form-label  layui-form-required">名字</label>
        <div class="layui-input-block">
            <input name="groupName"   lay-verType="tips" lay-verify="required" class="layui-input"  placeholder="请输入名字" lay-reqText="请输入名字"  />
        </div>
    </div>
	
	<div style="display:none" class="layui-form-item" pane>
        <label for="isDefault" class="layui-form-label  layui-form-required">默认</label>
        <div class="layui-input-block">
            <input type="checkbox" lay-filter="switch" name="isDefault"   lay-skin="switch" lay-text="开启|关闭">
        </div>
    </div>
	
	<div class="layui-form-item" pane>
        <label for="isEnable" class="layui-form-label  layui-form-required">是否开启</label>
        <div class="layui-input-block">
            <input type="checkbox" lay-filter="switch" name="isEnable"   lay-skin="switch" lay-text="开启|关闭">
        </div>
    </div>
	
	<div class="layui-form-item">
        <label for="createTime" class="layui-form-label  layui-form-required"></label>
        <div class="layui-input-block">
            <input name="createTime"  id="createTime-CoreCmsCustomerGroup-createTime" type="text" lay-verType="tips" lay-verify="required|datetime" class="layui-input" placeholder="请输入" lay-reqText="请输入"  />
        </div>
    </div>
	
      <div class="layui-form-item text-right core-hidden">
        <input type="button" class="layui-btn" lay-submit lay-filter="LAY-app-CoreCmsCustomerGroup-createForm-submit" id="LAY-app-CoreCmsCustomerGroup-createForm-submit" value="确认添加">
    </div>
</div>
</script>
<script>
    var debug= layui.setter.debug;
    layui.data.done = function (d) {
        //开启调试情况下获取接口赋值数据
        if (debug) { console.log(d.params.data); }
        layui.use(['admin', 'form', 'laydate', 'upload', 'coreHelper', 'cropperImg'],
        function () {
            var $ = layui.$
                , form = layui.form
                , admin = layui.admin
                , laydate = layui.laydate
                , upload = layui.upload
                , cropperImg = layui.cropperImg
                , coreHelper = layui.coreHelper;
	        
            laydate.render({
                elem: '#createTime-CoreCmsCustomerGroup-createTime',
                type: 'datetime',
                value: new Date(),
                fullPanel: true
            });
	        form.verify({
                
	        });
            //重载form
            form.render(null, 'LAY-app-CoreCmsCustomerGroup-createForm');
        })
    };
</script>
